﻿@using Abs.Core.Models.User
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Admin.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>T&T Appointment Booking System Blog</h1>
            </div>
            <div id="logindisplay">
                @if (Session["Email"] == null ||
                    ((int)this.Session["Role"]) != (int)RoleEnum.Admin)
                {
                    this.Response.Redirect("~/User/Unauthorized_Access.aspx");
                }
                else
                {

                    @:Welcome, <span class="bold"><b>@Session["Name"].ToString()</b></span>! 
                    @:[ <a href= "../../User/Logout.aspx">Log Out</a> ]
                }
            </div>
            <nav>
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li><a href="../../Booking/Check_Availability.aspx">Check Availability</a></li>
                    <li><a href="../../Booking/Make_Appointment.aspx">Make Appointment</a></li>
                    <li>@Html.ActionLink("Chit-Chat", "Index", "Post")</li>
                    <li><a href= "../../User/Logout.aspx">Log Out</a></li>
                </ul>
            </nav>
        </header>
        <section id="main">
            @RenderBody()
        </section>
        <footer>
        </footer>
    </div>
</body>
</html>
